package com.maoxs.pojo;

import lombok.Data;

import java.io.Serializable;

@Data
public class MyTest implements Serializable {
    private Long id;
    private String name;
    private int age;
    private Boolean inhere;

    public MyTest() {
    }

    public MyTest(String name, int age, Boolean inhere) {
        this.name = name;
        this.age = age;
        this.inhere = inhere;
    }

    public MyTest(Long id, String name, int age, Boolean inhere) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.inhere = inhere;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("MyTest{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", age=").append(age);
        sb.append(", inhere=").append(inhere);
        sb.append('}');
        return sb.toString();
    }
}


